Parse N

Description

With the addition of the c and p prefixes to the existing codes, the prefix must be parsed from the main value during calculations. It will be retained for the combined value. This will have no impact on the stored value and is solely a temporary state.

Notes

**Note:** For the Merkel schemas and Melanoma Skin, the stage derivation depends on the N prefix. Therefore, the prefix will be defaulted to match the field (c for Clin N and p for Path N) in the absence of a specific prefix.
Clinical N clin_n_prefix tmp_clin_n
cX, X c X
c0, 0 c 0
c0I-, 0I- c 0I-
c0I+, 0I+ c 0I+
c0M-, 0M- c 0M-
c0M+, 0M+ c 0M+
c1MI, 1MI c 1MI
c0A, 0A c 0A
c0B, 0B c 0B
c1, 1 c 1
c1A, 1A c 1A
c1B, 1B c 1B
c1C, 1C c 1C
c2, 2 c 2
c2A, 2A c 2A
c2B, 2B c 2B
c2C, 2C c 2C
c3, 3 c 3
c3A, 3A c 3A
c3B, 3B c 3B
c3C, 3C c 3C
c4, 4 c 4
pX p X
p0 p 0
p0I- p 0I-
p0I+ p 0I+
p0M- p 0M-
p0M+ p 0M+
p1MI p 1MI
p0A p 0A
p0B p 0B
p1 p 1
p1A p 1A
p1B p 1B
p1C p 1C
p2 p 2
p2A p 2A
p2B p 2B
p2C p 2C
p3 p 3
p3A p 3A
p3B p 3B
p3C p 3C
p4 p 4
88 <BLANK> 88
<BLANK> c <BLANK>
Clinical N clin_n_prefix tmp_clin_n
cX c X
c0 c 0
c0I- c 0I-
c0I+ c 0I+
c0M- c 0M-
c0M+ c 0M+
c1MI c 1MI
c0A c 0A
c0B c 0B
c1 c 1
c1A c 1A
c1B c 1B
c1C c 1C
c2 c 2
c2A c 2A
c2B c 2B
c2C c 2C
c3 c 3
c3A c 3A
c3B c 3B
c3C c 3C
c4 c 4
pX p X
p0 p 0
p0I- p 0I-
p0I+ p 0I+
p0M- p 0M-
p0M+ p 0M+
p1MI p 1MI
p0A p 0A
p0B p 0B
p1 p 1
p1A p 1A
p1B p 1B
p1C p 1C
p2 p 2
p2A p 2A
p2B p 2B
p2C p 2C
p3 p 3
p3A p 3A
p3B p 3B
p3C p 3C
p4 p 4
X c X
0 c 0
0I- c 0I-
0I+ c 0I+
0M- c 0M-
0M+ c 0M+
1MI c 1MI
0A c 0A
0B c 0B
1 c 1
1A c 1A
1B c 1B
1C c 1C
2 c 2
2A c 2A
2B c 2B
2C c 2C
3 c 3
3A c 3A
3B c 3B
3C c 3C
4 c 4
88 <BLANK> 88
<BLANK> c <BLANK>